package com.example.figurehecheng.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel(value="咨询")
public class NewsVO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "新闻ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "新闻标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "新闻描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "发布时间")
    @TableField("publish_time")
    private LocalDateTime publishTime;

    @ApiModelProperty(value = "浏览量")
    @TableField("views")
    private Integer views;

    @ApiModelProperty(value = "新闻内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "状态：0-下架，1-上架")
    @TableField("status")
    private Boolean status;

    @ApiModelProperty(value = "创建时间")
    @TableField("created_at")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新时间")
    @TableField("updated_at")
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "图片id")
    @TableField("image_id")
    private Integer imageId;

    @ApiModelProperty(value = "图片URL列表")
    private List<String> images;

    @ApiModelProperty(value = "封面图片")
    private String coverImage;

    @ApiModelProperty(value = "图片")
    @TableField("url")
    private String url;
}
